
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>高校资讯新闻</title>
    <style type="text/css">
        *{/*初始化css属性*/
            margin: 0;
            padding:0;
        }
        .wrap{/*设置对象宽度。css布局居中margin模式*/
            width: 600px;
            margin: 0px auto;

        }
        .menu{
            width: 600px;/*设置浏览器的宽度*/
            height: 30px;/*设置浏览器的大小*/
            background: cornflowerblue;/*设置背景颜色*/
            position:  sticky;/*在屏幕范围内时该元素的位置并不受影响*/
            top:0px;
        }
        .menu ul li{/*让内容在同一行显示*/
            float: left;
            list-style-type: none;
            padding: 0 40px;
        }
        .content ul li{/*图标处理*/
            height: 100px;
            overflow: hidden;
            border-bottom: 1px solid lavender;
            background: white;
            list-style-type: none;
            transition-duration: 0.5s;
            margin: 10px 10px 5px 0;

        }
        .content ul li:hover{
            background-color: lavender;
            transition-duration: 0.5s;
        }
        .content .left{
            overflow: hidden;/*隐藏溢出图片内容*/
            transition-duration: 0.5s;
            width: 140px;
            height:80px;
            /*background: green;*/
            float: left;
            margin-right:20px;
        }
        .content .right{
            width:400px ;
            float: left;
            /*background: pink;*/
        }
        .right_top{
            height:60px;
        }
        .right_bottom{
            margin_top:50px;
        }
        .right_bottom_left span{
            color: darkgray;
            font-size: 12px;
        }
    </style>
</head>
<body>
<div class="wrap">
    <div class="menu">
        <ul>
            <li>首页</li>
            <li>首页</li>
            <li>首页</li>
            <li>首页</li>
            <li>首页</li>
        </ul>
    </div>
    <div class="content">
        <ul>
            <li>
                <div class="left"><img src="../img/new1.png" alt=""></div>
                <div class="right">
                    <div class="right_top">
                        <h3>高校资讯新闻1</h3>
                    </div>
                    <div class="right_bottom">
                        <div class="right_bottom_left">
                            <span>郑州</span>  <span>中原工学院</span>  <span>南校区</span> <span>|</span> <span>5点30分</span>  <span>报导</span>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
        <li>
            <div class="left"><img src="../img/new2.png" alt=""></div>
            <div class="right">
                <div class="right_top">
                    <h3>高校资讯新闻2</h3>
                </div>
                <div class="right_bottom">
                    <div class="right_bottom_left">
                        <span>郑州</span>  <span>升达大学</span>  <span>|</span> <span>5点30分</span>  <span>报导</span>
                    </div>
                </div>
            </div>
        </li>
    </div>
</div>